const express = require('express');

module.exports = (app) => {
    var router = express.Router();

    router.route('/**').get((req, res) => {
        res.redirect('http://10.222.29.181:8088/O2OFileServer/read' + req.url);
    });

    app.use('/resources', router);

    return router;
}